import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './assets/reset.css';
Vue.config.productionTip = false
Vue.use(ElementUI);

//想要将工具函数挂载到vue原型上，方便在组件中使用,
// 可以使用this.formatime(new Date())进行调用
Vue.prototype.formatime = function (date) {
  return date.toDateString() + '' + date.toTimeString()
}
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
